package com.duoduo.admin.api.feign.fallback;

import org.springframework.cloud.openfeign.FallbackFactory;

import com.duoduo.admin.api.dto.SysLogDTO;
import com.duoduo.admin.api.feign.RemoteLogFeginClient;
import com.duoduo.common.core.util.R;

public class RemoteDictFeginClientFallbackFactory implements FallbackFactory<RemoteLogFeginClient> {

	@Override
	public RemoteLogFeginClient create(Throwable cause) {
		
		return new RemoteLogFeginClient() {

			@Override
			public R<Void> saveLog(SysLogDTO sysLog) {
				return R.failed();
			}};
	}

}
